package com.zhuang.chapter04;

public class PeopleMain {
	public static void main(String[] args) {
		People people = new People(165.0, "李莉", "女");
		people.rwjj(people);
	}
}

class People {
	private double sg;
	private String xm;
	private String xb;

	public People(double sg, String xm, String xb) {
		super();
		this.sg = sg;
		this.xm = xm;
		this.xb = xb;
	}

	public People() {
		super();
	}

	public double getSg() {
		return sg;
	}

	public void setSg(double sg) {
		this.sg = sg;
	}

	public String getXm() {
		return xm;
	}

	public void setXm(String xm) {
		this.xm = xm;
	}

	public String getXb() {
		return xb;
	}

	public void setXb(String xb) {
		this.xb = xb;
	}

	@Override
	public String toString() {
		return xm + "," + xb + "," + "身高" + sg + "cm";
	}

	public void rwjj(People people) {
		System.out.println(people.getXm() + "," + people.getXb() + "," + "身高" + people.getSg() + "cm");
	}

}